package com.wanpinghui.wphlibrary.model.addrbook;

import android.content.Context;

import com.wanpinghui.wphlibrary.model.addrbook.bean.AddrbookBean;
import com.wanpinghui.wphlibrary.model.addrbook.bean.MobileListBean;
import com.wanpinghui.wphlibrary.model.message.bean.RecentMsgBean;
import com.wanpinghui.wphlibrary.model.oauth.bean.UserBean;
import com.wanpinghui.wphlibrary.model.order.bean.PageDataBean;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import retrofit.callback.YRequestCallback;

/**
 * 功能描述
 * author:caitiangui
 * time:2018/1/3
 */

public interface AddrbookService {
    void addressBookList(int type, int page, YRequestCallback<PageDataBean<AddrbookBean>> callback);


    void mobil_list(int page,int per_page,int page_type,YRequestCallback<MobileListBean> callback);

    void friends(YRequestCallback<MobileListBean> callback);

    /**
     * 通过好友认证
     * @param callback
     */
    void agreeAddFriendsLogs(long invite_id,YRequestCallback<MobileListBean> callback);

    /**
     * 获取添加或者被添加的历史列表
     * @param callback
     */
    void addfriendsLogs(YRequestCallback<MobileListBean> callback);

    void updateMobilList(List<String> list,YRequestCallback<Object> callback);

    void readContact(Context context, YRequestCallback<ArrayList<HashMap<String, String>>> callback);

    void getUserInfo(long user_id, YRequestCallback<UserBean> callback);

    void addFriends(String followed_id,YRequestCallback<Object> callback);

    /**
     * 未读好友申请记录数量
     * @param callback
     */
    void unReadCount(YRequestCallback<RecentMsgBean> callback);

    void inviteFriends(String mobiles,String nickname,YRequestCallback<Object> callback);

    /**
     * 拨打用户电话
     * @param user_id
     * @param callback
     */
    void call(String user_id,YRequestCallback<Object> callback);
}
